package pers.wangyuhang.test;

/**
 * Created with IntelliJ IDEA.
 * Desciption:
 * User: 15716
 * Date: 2021-12-20
 * Time: 19:34
 */
public class PersonTest {
    public static void main(String[] args) {
        Person p1 = new Person();
        p1.age = 18;
        p1.name = "Tom";
        p1.sex = 1;

        p1.study();

        p1.showAge();

        int newAge = p1.addAge(2);
        System.out.println("Tom的新年龄是:" + newAge);

    }


}
